#include <dspSimulator/command/exit.h>

void ExitCommand::execute(std::string command) {
    exit(0);
}

 std::shared_ptr<ExitCommand> ExitCommand::get(Simulator *dspSimulator) {
    static std::shared_ptr<ExitCommand> exitCommand;
    if (exitCommand == nullptr) {
        exitCommand = std::make_shared<ExitCommand>(dspSimulator);
    }
    return exitCommand;
}